﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace Sundry.Areas.Admin.Models
{
    public class LoginModel
    {
        /// <summary>
        /// 用户名
        /// </summary>
        [StringLength(30,ErrorMessage="该用户不存在")]
        public string UserName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        [StringLength(30,ErrorMessage="密码错误")]
        public string Password { get; set; }
        /// <summary>
        /// 验证码
        /// </summary>
        [StringLength(11,MinimumLength=6,ErrorMessage="验证码错误")]
        public string ValidateCode { get; set; }
    }
}